<div class="loginWrapper">
	<?php if($this->Session->check('Message.flash')): ?>
	<div class="nNote nFailure hideit loginPanel">
		<p><strong><?php echo __('FAILURE'); ?>: </strong><?php echo __($this->Session->read('Message.flash.message')); ?></p>
    </div>
	<?php endif; ?>	
    <div class="loginPanel">
        <div class="head"><h5 class="iUser">Login</h5></div>
		<?php echo $this->Form->create('User', array('class' => 'mainForm')); ?>
            <fieldset>
                <div class="loginRow noborder">
                    <label for="UserEmail">Username:</label>
					<?php echo $this->Form->input('email', array('label' => false, 'div' => array('class' => 'loginInput'))); ?>
                    <div class="fix"></div>
                </div>
                <div class="loginRow">
                    <label for="UserPassword">Password:</label>
                    <?php echo $this->Form->input('password', array('label' => false, 'div' => array('class' => 'loginInput'))); ?>
                    <div class="fix"></div>
                </div>
                
                <div class="loginRow">
                    <div class="rememberMe"><input type="checkbox" id="UserRemember" name="data[User][remember]" /><label for="UserRemember">Remember me</label></div>
					<?php echo $this->Form->submit('Login', array('class' => 'greyishBtn submitForm')); ?>
                </div>
            </fieldset>
        <?php echo $this->Form->end(); ?>
    </div>
</div>